package com.example.uhpocketguide;

import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.support.v4.app.NavUtils;

public class OpenLLLList extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_open_llllist);
		// Show the Up button in the action bar.
		getActionBar().setDisplayHomeAsUpEnabled(true);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_open_llllist, menu);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case android.R.id.home:
			// This ID represents the Home or Up button. In the case of this
			// activity, the Up button is shown. Use NavUtils to allow users
			// to navigate up one level in the application structure. For
			// more details, see the Navigation pattern on Android Design:
			//
			// http://developer.android.com/design/patterns/navigation.html#up-vs-back
			//
			NavUtils.navigateUpFromSameTask(this);
			return true;
		}
		return super.onOptionsItemSelected(item);
	}
	
	/** Called when the user clicks the East Asian Languages and Literatures button */
	public void dialEastAsian(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089568940", "#")); 
		startActivity(intent); 
	}
	
	/** Called when the user clicks the English button */
	public void dialEnglish(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089568940", "#")); 
		startActivity(intent); 
	}
	
	/** Called when the user clicks the Indo-Pacific Languages and Literatures button */
	public void dialIndoPacific(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089568672", "#")); 
		startActivity(intent); 
	}
	
	/** Called when the user clicks the Languages and Literatures of Europe and the Americas button */
	public void dialLLEA(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089568520", "#")); 
		startActivity(intent); 
	}
	
	/** Called when the user clicks the Linguistics button */
	public void dialLinguistics(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089568602", "#")); 
		startActivity(intent); 
	}
	
	/** Called when the user clicks the Second Language Studies button */
	public void dialSecondLanguage(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089568610", "#")); 
		startActivity(intent); 
	}

}
